<template>
  <div class="news">
    <div class="block">
      <el-card class="box-card" :body-style="{backgroundColor: '#fafafa' }">
        <div slot="header" class="box-head">
          <el-breadcrumb separator="/">
            <el-breadcrumb-item class="c-text">
              情景选择
            </el-breadcrumb-item>
          </el-breadcrumb>
        </div>
        <el-row :gutter="50">
          <el-col :span="8">
            <div class="grid-content bg-purple">
              <el-card class="b-card1" :body-style="{ padding: '0px',}" shadow="hover" @click.native="cardclick(1)">
                <img src="../../assets/scene/scene1.png" class="image">
                <div class="b-text">
                  <span>你能逃离诈骗圈套吗？</span>
                </div>
              </el-card>
            </div>
          </el-col>
          <el-col :span="8">
            <div class="grid-c ontent bg-purple">
              <el-card class="b-card2" :body-style="{ padding: '0px' }" shadow="hover" @click.native="cardclick(2)">
                <img src="../../assets/scene/scene2.png" class="image">
                <div class="b-text">
                  <span>情景游戏2</span>
                </div>
              </el-card>
            </div>
          </el-col>
          <el-col :span="8">
            <div class="grid-content bg-purple">
              <el-card class="b-card3" :body-style="{padding: '0px' }" shadow="hover" @click.native="cardclick(3)">
                <img src="../../assets/scene/scene3.png" class="image">
                <div class="b-text">
                  <span>情景游戏3</span>
                </div>
              </el-card>
            </div>
          </el-col>
        </el-row>
      </el-card>
    </div>
  </div>

</template>

<script>
export default {
  name: "Scenechoose",
  data() {
    return {
      input: '',
      select: '0',
    };
  },
  mounted() {
    this.load();
  },
  methods: {
    load() {
    },
    cardclick(id) {
      if (id === 1) {
        this.$router.push("/learn/scene1-1")
      } else if (id === 2) {
        this.$router.push("/learn/scene1-1")
      } else {
        this.$router.push("/learn/scene1-1")
      }
    },
  }
}
</script>

<style scoped>
.news{
  width: 100%;
  min-height: 666px;
}

.block{
  width: 80%;
  padding-top: 20px;
  position: relative;
  left: 50%;
  transform: translate(-50%, 0%);
  /*box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);*/
}

.input-with-select .el-input-group__prepend {
  background-color: #fff;
}

.el-row {
  padding: 20px;
  min-height: 500px;
}

.el-col {
  border-radius: 40px;
  padding: 25px;
}

.box-card{
  background-color: #354e66;
}

/deep/ .el-breadcrumb__inner {
  color: #f9bf4b !important;
  font-weight: bold !important;
}

.c-text {
  font-size: 17px;
  color: #f9bf4b;
}

.image {
  width: 100%;
  display: block;
}

.b-text {
  padding: 14px;
  background: #354e66;
  color: #f9bf4b;
  font-size: 17px;
  font-weight: bold;
}

.clearfix:after {
  clear: both
}

.img {
  width: 600px;
  height: 600px;
}

.b-card1{
  animation-duration: 1s;
  animation-name: move1;
}
.b-card2{
  animation-duration: 1.5s;
  animation-name: move1;
}
.b-card3{
  animation-duration: 2s;
  animation-name: move1;
}

@keyframes move1 {
  0% {
    margin-top: 50%;
  }
  100% {
    margin-top: 0%;
  }
}
</style>